package com.designmodel.created.singleton;

/**
 * 饿汉式（基于classloder机制避免了多线程的同步问题）
 *
 * @author think
 * @version 1.0.0
 */
public class Singleton3 {

    private static volatile Singleton3 singleton = new Singleton3();

    private Singleton3() {
    }

    public static Singleton3 getInstance() {
        return singleton;
    }
}
